/**
 * Copyright &copy; 2012-2016 <a href="https://github.com/thinkgem/jeesite">JeeSite</a> All rights reserved.
 */
package com.thinkgem.jeesite.modules.sys.service.idarea;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.thinkgem.jeesite.common.persistence.Page;
import com.thinkgem.jeesite.common.service.CrudService;
import com.thinkgem.jeesite.modules.sys.entity.idarea.IdArea;
import com.thinkgem.jeesite.modules.sys.dao.idarea.IdAreaDao;

/**
 * idAreaService
 * @author jin
 * @version 2018-04-16
 */
@Service
@Transactional(readOnly = true)
public class IdAreaService extends CrudService<IdAreaDao, IdArea> {

	public IdArea get(String id) {
		return super.get(id);
	}
	
	public List<IdArea> findList(IdArea idArea) {
		return super.findList(idArea);
	}
	
	public Page<IdArea> findPage(Page<IdArea> page, IdArea idArea) {
		return super.findPage(page, idArea);
	}
	
	@Transactional(readOnly = false)
	public void save(IdArea idArea) {
		super.save(idArea);
	}
	
	@Transactional(readOnly = false)
	public void delete(IdArea idArea) {
		super.delete(idArea);
	}

	public String getIdArea(String idCard){
		return dao.getIdArea(idCard);
	}
	
}